package com.sg.dto.biz.pbff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffTimerTaskPlanDto
 * @使用场景
 */
@Data
public class BffTimerTaskPlanDto implements Serializable {

    /**
     * 定时任务调度记录ID
     */
    @ApiModelProperty("定时任务调度记录ID")
    private String timingTaskDispatchId;

    /**
     * 定时任务调度名称
     */
    @ApiModelProperty("定时任务调度名称")
    private String timingTaskDispatchName;

    /**
     * 归属对象内容ID
     */
    @ApiModelProperty("归属对象内容ID")
    private String objectId;

    /**
     * 是否执行完成 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否执行完成")
    private String isComplete;

    /**
     * 创建人就职记录ID
     */
    @ApiModelProperty("创建人就职记录ID")
    private String createInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 创建于空间ID
     */
    @ApiModelProperty("创建于空间ID")
    private String spaceId;

    /**
     * 空间简称
     */
    @ApiModelProperty("空间简称")
    private String abbreviation;
    /**
     * 是否常规任务调度 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否常规任务调度")
    private String isRoutineDispatchAction;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTimerTaskPlanDto that = (BffTimerTaskPlanDto) o;
        return timingTaskDispatchId == that.timingTaskDispatchId && timingTaskDispatchName == that.timingTaskDispatchName && objectId == that.objectId && isComplete == that.isComplete && createInductionId == that.createInductionId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && createTime == that.createTime && spaceId == that.spaceId && abbreviation == that.abbreviation && isRoutineDispatchAction == that.isRoutineDispatchAction;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), timingTaskDispatchId, timingTaskDispatchName, objectId, isComplete, createInductionId, userId, userFace, idCardName, nickName, createTime, spaceId, abbreviation, isRoutineDispatchAction);
    }


}
   